<?php

namespace App\Events;

class ExampleEvent extends Event
{

    public $data;
    public $value;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($event)
    {
        //
        app('log')->info('触发ExampleEvent事件--');
        $this->data = $event;
        $this->value = $event;
        app('log')->info(json_encode($event));
    }
}
